<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery-3.4.1.min.js"></script>
    <style>
        .div1{
            width: 100px;
            height: 100px;
            background-color: green;
        }
    </style>
</head>
<body>
    <button class="btn_1">tn1</button>
    <button class="btn_2">btn2</button>
    <button class="btn_3">btn3</button>
    <button class="btn_4">btn4</button>
    <div class="div1">

    </div>
    <script>
        $(function () {
            $(".btn_1").click(function () {
                $.get("https://yeqt.top:3005/ago/test",function (data,stutic) {
                    console.log(data);
                    $(".div1").text(data)
                })
            })
            $(".btn_2").click(function () {
                $(".div1").slideToggle()
            })
            $(".btn_3").hover(function () {
                $(".div1").slideToggle()
            })
        })

        var time = setInterval(() => {
            alert("定时器设置")
        }, 5000);
    </script>
</body>
</html>